package com.lin.sms.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.lin.sms.domain.Score;
//@Repository(value="scoreMapper")
//@Mapper
public interface ScoreMapper {
    
    //插入新数据
    public void saveScore(Score score);
    // 根据classId列出Score
    public List<Score> listScoreByClassId(@Param("classId")String classId, @Param("currentRow")Integer currentRow, @Param("pageSize") Integer pageSize);

    // 列出所有Score
    public List<Score> listScore(@Param("currentRow") Integer currentRow, @Param("pageSize") Integer pageSize);
    
    //根据classId列出总条数
    public Integer countByClassId (@Param("classId") String classId);
    
    //列出总条数
    public Integer count ();

}
